﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediPlatform.Domain.Order
{
    /// <summary>
    /// 退款日志表
    /// </summary>
    public class RefundLog
    {
        /// <summary>
        /// 主键，自增
        /// </summary>
        [Key]
        public long? Id { get; set; }

        /// <summary>
        /// 外键，关联 RefundApplication.Id
        /// </summary>
        public long? ApplicationId { get; set; }

        /// <summary>
        /// 当前状态：0-待处理, 1-已处理, 2-已拒绝
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 操作人员ID，外键关联员工表
        /// </summary>
        public long? OperatorId { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OperateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 操作备注（如拒绝原因）
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
    }
}
